return _state == Connected;
}
+bool AccountState::needsToSignTermsOfService() const
+{
+ return _state == NeedToSignTermsOfService;
+}
+
void AccountState::tagLastSuccessfullETagRequest(const QDateTime &tp)
{
_timeOfLastETagCheck = tp;
_connectionErrors.clear();
connect(conValidator, &ConnectionValidator::connectionResult,
this, &AccountState::slotConnectionValidatorResult);
- if (isConnected()) {
+ if (isConnected() || needsToSignTermsOfService()) {
// Use a small authed propfind as a minimal ping when we're
// already connected.
conValidator->checkAuthentication();
bool isConnected() const;
+ bool needsToSignTermsOfService() const;
+
/** Returns a new settings object for this account, already in the right groups. */
std::unique_ptr<QSettings> settings();